package com.simplework.business.kind.bo;

import com.simplework.business.common.shiro.pojo.UserPojo;
import com.simplework.business.iframework.bo.CrudBo;
import com.simplework.business.kind.dao.UserDao;
import com.simplework.business.kind.pojo.User;
import com.simplework.business.kind.service.UserService;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.Set;

/**
 * @Author Brant Liu
 * @Desc TODO 
 * @MailTo lbf1988@qq.com
 * @Date 2017-09-07 19:27
 */
@Service
public class UserBo extends CrudBo<User, UserDao> implements UserService {
    @Override
    public UserPojo queryByMobile(String s) {
        return dao.queryByMobile(s);
    }

    @Override
    public UserPojo queryByUsername(String s) {
        return dao.queryByUsername(s);
    }

    @Override
    public Set<String> queryRoleByUserId(Long aLong) {
        return new HashSet<>();
    }

    @Override
    public Set<String> queryPermissionByUserId(Long aLong) {
        return new HashSet<>();
    }
}